<?php

namespace app\index\service;

use app\index\dao\MemberDao;

/**
 * Class SourceNumberService
 * @package app\index\service
 */
class SourceNumberService
{
    // dao
    private MemberDao $memberDao;

    public function __construct(MemberDao $memberDao)
    {
        $this->memberDao = $memberDao;
    }

    /**
     *
     * @return array
     */
    public function read(): array
    {
        // 案源广场，关注的律师数

        //这里如果要修改查询，建议把查询放到dao层去
        return [
            'number' => $this->memberDao->countFollowedWechatLawyer()
        ];
    }

}
